package com.wy.authority.service.impl;

import com.wy.authority.entity.Menu;
import com.wy.authority.mapper.MenuMapper;
import com.wy.authority.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author 忘忧
 * @Date Created in 2021/1/13 9:43
 * @Description:
 */
@Service
public class MenuServiceImpl implements MenuService {
    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Menu> find() {
        return menuMapper.find();
    }

    @Override
    public List<Menu> find2(Integer menu_id) {
        return menuMapper.find2(menu_id);
    }

    @Override
    public List<Menu> find_menu() {
        return menuMapper.find_menu();
    }

    @Override
    public int insert(Menu menu) {
        return menuMapper.insert(menu);
    }

    @Override
    public int delete(int menu_id) {
        return menuMapper.delete(menu_id);
    }

    @Override
    public List<Menu> findbyid(int menu_id) {
        return menuMapper.findbyid(menu_id);
    }

    @Override
    public int update(Menu menu) {
        return menuMapper.update(menu);
    }
}
